﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BaseFunction;

namespace YY.Web.MyAgent
{
    public partial class AuditStatus : LoginHelp
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var submit = base.GetSessionModel().is_submit;
                var status = base.GetSessionModel().status;
                switch (submit)
                {
                    case 0:
                        MessageBox.ResponseScript(this.Page, string.Format("parent.jsprint(\"未提交审核！\",\"/MyAgent/dialog_audit_status/nosubmmit.aspx\")")); //未提交IsNotSubmitted.aspx
                        break;
                    case 1:
                        switch (status)
                        {
                            case 0:
                                MessageBox.ResponseScript(this.Page, string.Format("parent.jsprint(\"审核中！\",\"/MyAgent/dialog_audit_status/isauditting.aspx\")")); //审核需要三到五个工作日
                                break;
                            case 1:
                                MessageBox.ResponseScript(this.Page, string.Format("parent.jsprint(\"审核未通过！\",\"/MyAgent/dialog_audit_status/nopass.aspx\")"));//审核未通过 未通过原因 重新上传信息
                                break;
                            case 2:
                                MessageBox.ResponseScript(this.Page, string.Format("parent.jsprint(\"审核已通过！\",\"/MyAgent/dialog_audit_status/ispass.aspx\")"));
                                break;
                        }
                        break;
                }

            }
        }
    }
}